using System;
using System.Xml.Serialization;
using System.Collections.Generic;
using Top.Api.Domain;

namespace Top.Api.Response
{
    /// <summary>
    /// MarketingPromotionAddResponse.
    /// </summary>
    public class MarketingPromotionAddResponse : TopResponse
    {
        /// <summary>
        /// 是否设置成功
        /// </summary>
        [XmlElement("is_success")]
        public bool IsSuccess { get; set; }

        /// <summary>
        /// 返回设置成功的优惠策略信息，仅返回Promotion数据结构中的promotion_id,item_id,item_detail_url。
        /// </summary>
        [XmlArray("promotions")]
        [XmlArrayItem("promotion")]
        public List<Promotion> Promotions { get; set; }
    }
}
